﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BattleShipLibruarry
{
    public class Cell
    {
        private char _x;
        private int _y;
        private bool _wasAttacked;

        public Cell(char x, int y)
        {
            _x = x;
            _y = y;
            _wasAttacked = false;
        }

        public char X
        {
            get
            {
                return _x;
            }
        }

        public int Y
        {
            get
            {
                return _y;
            }
        }

        public bool WasAttacked
        {
            get
            {
                return _wasAttacked;
            }
            set
            {
                _wasAttacked = value;
            }
        }
    }
}
